<!DOCTYPE html>
<html>
  <head>
    <title><%= target.title %></title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <script type="text/javascript" src="/xheditor/jquery/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" src="/xheditor/xheditor-1.2.2.min.js"></script>
    <script type="text/javascript" src="/xheditor/xheditor_lang/zh-cn.js"></script>
  </head>
  <body>
      <div class="row text-center">
            <div class="col-md-5">
                <h3 class="">书名：<%= target.title %></h3>
                <img src="<%= target.images.medium %>" />
                <p class="author">作者：
                <% var authors = target.author %>
                    <% for(var j = 0;j<authors.length;j++){ %>
                        <span><%= authors[j] %></span>、
                    <% }  %>
                </p>
                <p class="publisher">出版社：<%= target.publisher %></p>
                <p class="pubdate">出版年：<%= target.pubdate %></p>
                <p>页数：<%= target.pages %></p>
                <p>装帧：<%= target.binding %></p>
                <p class="price">定价：<%= target.price %></p>
                <p class="ISBN">定价：<%= target.isbn13 %></p>
                <p class=""><span><%= target.rating.numRaters %>人评价-----</span><span>豆瓣评分：<%= target.rating.average %></span></p>
            </div>
            <div class="col-md-7">
                <form action="/book/submit" method="post">
                    我想说:<textarea class="xheditor" cols="20" rows="5" name="content"></textarea>
                    <input type="submit" name="submit" value="提交">
                </form>
                <h3>评论区</h3>
                <div class="content">
                    <ul>
                        <% var list = comments; %>
                        <% for(var j = 0;j<list.length;j++){

                        <%}%>
                    </ul>                
                </div>
            </div>
      </div>
      <link rel='stylesheet' href='/booksheets/bootstrap.min.js' />
  </body>
</html>
